#import "ALSourceListColumnEntry.h"
#import "NSObject+BlockObservation.h"


@implementation ALSourceListColumnEntry

-(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
	if (!(self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]))
		return nil;
	AMBlockTask selectedTask = ^(id object, NSDictionary *change) {
		[[self view] setValue:[NSNumber numberWithBool:[self selected]] forKey:@"highlighted"];
	};
	[self addObserverForKeyPath:ALSelectedKey task:selectedTask];
	return self;
}

//- (IBAction)appInfoPopover:(id)sender {
//    LogDebug(@"app info for %@", [self representedObject]);
//}

@end
